/**
 * 
 */
package com.teach.service.impl;

import com.teach.dao.UserDAO;
import com.teach.entity.User;
import com.teach.service.UserAddService;

/**
 * @author Liulianqiu
 *2020年7月30日
 */
public class UserAddServiceImpl implements UserAddService {

	private UserDAO userDAO = new UserDAO();
	@Override
	public boolean add(User user) {
		try {
			return userDAO.add(user);
		} catch (Exception e) {
			throw new RuntimeException("添加用户失败", e);
		}
	}

	
}
